﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HomeProfileWorkProcessEdit.ascx.cs" 
Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.HomeProfileWorkProcessEdit" %>
<%--<%@ Register Src="~/Admin/Views/Shared/Sub/DetailCommonGroup.ascx" TagName="DetailCommonGroup" TagPrefix="uc1" %>--%>

<owc:OwDetailsView ID="OpenHomeProfileWorkProcessDV" runat="server" 
    AutoGenerateRows="False" DataKeyNames="OpenHomeProfileWorkProcessID"
    DataSourceID="OwOpenHomeProfileWorkProcessOds" OwNotificationID="" SkinID="DetailViewAdmin"
    EnableModelValidation="True" >
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup1" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>'
                            OwBindLanguageValue='<%# Bind("LanguageCode") %>' OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>'
                            OwBindWardLocalityValue='<%# Bind("WardID") %>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize8" Text="<%$ OwR:TitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="NameOwR" OwText="NameLabel" OwSuffix=":" runat="server"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="680px" 
                                        OwDefaultValue="" OwUsedForEdit="False"
                                        Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="HomeProfileDetailOwR" runat="Server" OwText="HomeProfileDetailLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="HomeProfileDetailCbb" runat="server" DataSourceID="OwOpenHomeProfileDetailOds" 
                                        DataTextField="Title" DataValueField="OpenHomeProfileDetailID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwOpenHomeProfileDetailOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                            <asp:Parameter Name="firstNameID" Type="Int64" />
                                            <asp:Parameter Name="lastNameID" Type="Int64" />
                                            <asp:Parameter Name="isDefault" Type="Boolean" />
                                            <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                            <asp:Parameter Name="fiveElementID" Type="Int32" />
                                            <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                            <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                            <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                            <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                            <asp:Parameter Name="hometownWardID" Type="Int64" />
                                            <asp:Parameter Name="zodiacID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="ParentOwR" runat="Server" OwText="ParentLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="ParentCbb" runat="server" DataSourceID="OwWorkProcessOds" 
                                        DataTextField="Name" DataValueField="OpenHomeProfileWorkProcessID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("ParentID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwWorkProcessOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileWorkProcessBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="continentID" Type="Int64" />
                                            <asp:Parameter Name="countryID" Type="Int64" />
                                            <asp:Parameter Name="provinceID" Type="Int64" />
                                            <asp:Parameter Name="districtID" Type="Int64" />
                                            <asp:Parameter Name="wardID" Type="Int64" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="companyID" Type="Int64" />
                                            <asp:Parameter Name="openHomeProfileDetailID" Type="Int64" />
                                            <asp:Parameter Name="jobTitleID" Type="Int64" />
                                            <asp:Parameter Name="jobPositionID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>                                    
                                </td>
                            </tr>
                            <tr>
                                    <td class="leftcolumn">
                                    <%--<asp:Localize ID="CompanyTxt" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR runat="server" ID="CompanyOwR" OwText="CompanyLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="CompanyCbb" runat="server" DataSourceID="OwCompanyOds" 
                                        DataTextField="Name" DataValueField="CompanyID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("CompanyID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwCompanyOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwCompaniesBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter Name="code" Type="String" />
                                            <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                            <asp:Parameter Name="isHot" Type="Boolean" />
                                            <asp:Parameter Name="enableBegin" Type="DateTime" />
                                            <asp:Parameter Name="enableEnd" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="userID" DbType="Guid" />
                                            <asp:Parameter Name="isApproved" Type="Boolean" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter DbType="Guid" Name="creatingUser" />
                                            <asp:Parameter DbType="Guid" Name="editingUser" />
                                            <asp:Parameter DbType="Guid" Name="deletingUser" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize4" Text="<%$ OwR:JobPositionLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR runat="server" ID="JobPositionOwR" OwText="JobPositionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="JobPositionCbb" runat="server" DataSourceID="OwJobPositionOds" 
                                        DataTextField="Name" DataValueField="JobPositionID" 
                                        SelectedValue='<%# Bind("JobPositionID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwJobPositionOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwJobPositionsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="networkID" Type="Int64" />
                                            <asp:Parameter Name="portalID" Type="Int64" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>   
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR runat="server" ID="JobTitleOwR" OwText="JobTitleLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="JobTitleCbb" runat="server"
                                        SelectedValue='<%# Bind("JobTitleID") %>' style="margin-bottom: 0px" 
                                       oninit="OwJobTitleCbb_Init">
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwJobOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwJobsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="networkID" Type="Int64" />
                                            <asp:Parameter Name="portalID" Type="Int64" />
                                            <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                            <asp:Parameter Name="isHot" Type="Boolean" />
                                            <asp:Parameter Name="enableBegin" Type="DateTime" />
                                            <asp:Parameter Name="enableEnd" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="isApproved" Type="Boolean" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="allowComment" Type="Boolean" />
                                            <asp:Parameter DbType="Guid" Name="creatingUser" />
                                            <asp:Parameter DbType="Guid" Name="editingUser" />
                                            <asp:Parameter DbType="Guid" Name="deletingUser" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="isVip" Type="Boolean" />
                                            <asp:Parameter Name="sortOrder" Type="Int64" />
                                            <asp:Parameter Name="companyID" Type="Int64" />
                                            <asp:Parameter Name="jobTitleID" Type="Int32" />
                                            <asp:Parameter Name="levelOfLanguage1" Type="Byte" />
                                            <asp:Parameter Name="levelOfLanguage2" Type="Byte" />
                                            <asp:Parameter Name="levelOfLanguage3" Type="Byte" />
                                            <asp:Parameter Name="levelOfComputer" Type="Byte" />
                                            <asp:Parameter Name="levelOfCommunication" Type="Byte" />
                                            <asp:Parameter Name="jobPositionID" Type="Int64" />
                                            <asp:Parameter Name="typeOfWork" Type="Byte" />
                                            <asp:Parameter Name="educationLevel" Type="Byte" />
                                            <asp:Parameter Name="number" Type="Byte" />
                                            <asp:Parameter Name="yearOfExperience" Type="Byte" />
                                            <asp:Parameter Name="languageID1" Type="Int64" />
                                            <asp:Parameter Name="languageID2" Type="Int64" />
                                            <asp:Parameter Name="languageID3" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>                            
                            
                            <tr>
                                <td>
                                    <%--<asp:Localize ID="Localize11" Text="<%$ OwR:DescriptionLabel %>" runat="server"></asp:Localize>:--%>
                                    <owc:OwR ID="DescriptionOwR" runat="server" OwText="DescriptionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="DescriptionEdt" runat="server" SkinID="OwEditorBrief"
                                        OwStoragePlace="Common" 
                                       Style="position: relative; top: 0px; left: 0px;" 
                                        Content='<%# Bind("Description") %>'>
                                    </owc:OwEditor>                                    
                                </td>
                            </tr>                            
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo" ></owc:OwR>
                    </legend>
                    <table width="100%">
                        <tr>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                                <owc:OwR ID="DateTimeStartOwR" runat="server" OwText="DateTimeStartLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeStart" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeStart") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                                <owc:OwR ID="DateTimeEndOwR" runat="server" OwText="DateTimeEndLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeEnd") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                        UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                                <asp:CompareValidator ID="CompareValidator6" runat="server" ControlToCompare="dtDateTimeStart"
                                                    ControlToValidate="dtDateTimeEnd" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                                    Operator="GreaterThan" ValidationGroup="VDGroup"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>                                        
                                        <tr>
                                            <td class="tdinFs leftcolumn">
                                                <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwPrefix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsDeletedCbb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                           
                
                  <br />
                    <br />
                    <br />
            </InsertItemTemplate>
            <EditItemTemplate>
               <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup1" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>'
                            OwBindLanguageValue='<%# Bind("LanguageCode") %>' OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>'
                            OwBindWardLocalityValue='<%# Bind("WardID") %>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize8" Text="<%$ OwR:TitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="NameOwR" OwText="NameLabel" OwSuffix=":" runat="server"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="680px" 
                                        OwDefaultValue="" OwUsedForEdit="False"
                                        Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="HomeProfileDetailOwR" runat="Server" OwText="HomeProfileDetailLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="HomeProfileDetailCbb" runat="server" DataSourceID="OwOpenHomeProfileDetailOds" 
                                        DataTextField="Title" DataValueField="OpenHomeProfileDetailID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwOpenHomeProfileDetailOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL" 
                                        DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileDetailsEntity" 
                                        DeleteMethod="OwDelete" InsertMethod="OwInsert" UpdateMethod="OwUpdate">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                            <asp:Parameter Name="firstNameID" Type="Int64" />
                                            <asp:Parameter Name="lastNameID" Type="Int64" />
                                            <asp:Parameter Name="isDefault" Type="Boolean" />
                                            <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                            <asp:Parameter Name="fiveElementID" Type="Int32" />
                                            <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                            <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                            <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                            <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                            <asp:Parameter Name="hometownWardID" Type="Int64" />
                                            <asp:Parameter Name="zodiacID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="ParentOwR" runat="Server" OwText="ParentLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="ParentCbb" runat="server" DataSourceID="OwWorkProcessOds" 
                                        DataTextField="Name" DataValueField="OpenHomeProfileWorkProcessID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("ParentID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwWorkProcessOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileWorkProcessBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="continentID" Type="Int64" />
                                            <asp:Parameter Name="countryID" Type="Int64" />
                                            <asp:Parameter Name="provinceID" Type="Int64" />
                                            <asp:Parameter Name="districtID" Type="Int64" />
                                            <asp:Parameter Name="wardID" Type="Int64" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="companyID" Type="Int64" />
                                            <asp:Parameter Name="openHomeProfileDetailID" Type="Int64" />
                                            <asp:Parameter Name="jobTitleID" Type="Int64" />
                                            <asp:Parameter Name="jobPositionID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>                                    
                                </td>
                            </tr>
                            <tr>
                                    <td class="leftcolumn">
                                    <%--<asp:Localize ID="CompanyTxt" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR runat="server" ID="CompanyOwR" OwText="CompanyLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="CompanyCbb" runat="server" DataSourceID="OwCompanyOds" 
                                        DataTextField="Name" DataValueField="CompanyID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("CompanyID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwCompanyOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwCompaniesBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter Name="code" Type="String" />
                                            <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                            <asp:Parameter Name="isHot" Type="Boolean" />
                                            <asp:Parameter Name="enableBegin" Type="DateTime" />
                                            <asp:Parameter Name="enableEnd" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="userID" DbType="Guid" />
                                            <asp:Parameter Name="isApproved" Type="Boolean" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter DbType="Guid" Name="creatingUser" />
                                            <asp:Parameter DbType="Guid" Name="editingUser" />
                                            <asp:Parameter DbType="Guid" Name="deletingUser" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize4" Text="<%$ OwR:JobPositionLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR runat="server" ID="JobPositionOwR" OwText="JobPositionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="JobPositionCbb" runat="server" DataSourceID="OwJobPositionOds" 
                                        DataTextField="Name" DataValueField="JobPositionID" 
                                        SelectedValue='<%# Bind("JobPositionID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwJobPositionOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwJobPositionsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="networkID" Type="Int64" />
                                            <asp:Parameter Name="portalID" Type="Int64" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>   
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR runat="server" ID="JobTitleOwR" OwText="JobTitleLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>' SkinID="owCombobox" ID="JobTitleCbb" runat="server"
                                        SelectedValue='<%# Bind("JobTitleID") %>' style="margin-bottom: 0px" 
                                       oninit="OwJobTitleCbb_Init">
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwJobOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwJobsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="networkID" Type="Int64" />
                                            <asp:Parameter Name="portalID" Type="Int64" />
                                            <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                            <asp:Parameter Name="isHot" Type="Boolean" />
                                            <asp:Parameter Name="enableBegin" Type="DateTime" />
                                            <asp:Parameter Name="enableEnd" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="isApproved" Type="Boolean" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="allowComment" Type="Boolean" />
                                            <asp:Parameter DbType="Guid" Name="creatingUser" />
                                            <asp:Parameter DbType="Guid" Name="editingUser" />
                                            <asp:Parameter DbType="Guid" Name="deletingUser" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="isVip" Type="Boolean" />
                                            <asp:Parameter Name="sortOrder" Type="Int64" />
                                            <asp:Parameter Name="companyID" Type="Int64" />
                                            <asp:Parameter Name="jobTitleID" Type="Int32" />
                                            <asp:Parameter Name="levelOfLanguage1" Type="Byte" />
                                            <asp:Parameter Name="levelOfLanguage2" Type="Byte" />
                                            <asp:Parameter Name="levelOfLanguage3" Type="Byte" />
                                            <asp:Parameter Name="levelOfComputer" Type="Byte" />
                                            <asp:Parameter Name="levelOfCommunication" Type="Byte" />
                                            <asp:Parameter Name="jobPositionID" Type="Int64" />
                                            <asp:Parameter Name="typeOfWork" Type="Byte" />
                                            <asp:Parameter Name="educationLevel" Type="Byte" />
                                            <asp:Parameter Name="number" Type="Byte" />
                                            <asp:Parameter Name="yearOfExperience" Type="Byte" />
                                            <asp:Parameter Name="languageID1" Type="Int64" />
                                            <asp:Parameter Name="languageID2" Type="Int64" />
                                            <asp:Parameter Name="languageID3" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>                            
                            
                            <tr>
                                <td>
                                    <%--<asp:Localize ID="Localize11" Text="<%$ OwR:DescriptionLabel %>" runat="server"></asp:Localize>:--%>
                                    <owc:OwR ID="DescriptionOwR" runat="server" OwText="DescriptionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="DescriptionEdt" runat="server" SkinID="OwEditorBrief"
                                        OwStoragePlace="Common" 
                                       Style="position: relative; top: 0px; left: 0px;" 
                                        Content='<%# Bind("Description") %>'>
                                    </owc:OwEditor>                                    
                                </td>
                            </tr>                            
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo" ></owc:OwR>
                    </legend>
                    <table width="100%">
                        <tr>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                                <owc:OwR ID="DateTimeStartOwR" runat="server" OwText="DateTimeStartLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeStart" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeStart") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                                <owc:OwR ID="DateTimeEndOwR" runat="server" OwText="DateTimeEndLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeEnd") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                        UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                                <asp:CompareValidator ID="CompareValidator6" runat="server" ControlToCompare="dtDateTimeStart"
                                                    ControlToValidate="dtDateTimeEnd" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                                    Operator="GreaterThan" ValidationGroup="VDGroup"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>                                        
                                        <tr>
                                            <td class="tdinFs leftcolumn">
                                                <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwPrefix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsDeletedCbb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                          
                
                    <br />
                    <br />
                    <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                
                    
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>'  OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>

<owc:OwObjectDataSource ID="OwOpenHomeProfileWorkProcessOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileWorkProcessEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileWorkProcessBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
           <asp:QueryStringParameter Name="OpenHomeProfileWorkProcessID" QueryStringField='<%$ Ow:OwConstants.QueryString.ID %>' />
    </SelectParameters>
</owc:OwObjectDataSource>
